from functools import reduce


def add(x, y):
    return x + y


# 累计运算
def main() -> None:
    value = reduce(add, [1, 2, 3, 4, 5])
    print(value)


if __name__ == "__main__":
    main()
